#ifndef _OCPP_ObliqueTile_H_
#define _OCPP_ObliqueTile_H_

#include "ObliqueNodeVisitor.h"
#include "OCMain/FileUtil.h"
#include "json/json.h"

namespace OCPP
{
	namespace Cesium
	{
		class _Osg2CesiumExport ObliqueTile
		{
		public:
			ObliqueTile(std::shared_ptr<ObliqueConfig> config,String tileId);
			void read(String fileName);
			Json::Value toJson();
			void fromJson(Json::Value& value);
			void readNodeInfo(String fileName);
			void statistic();

			String tileID;
			ObliqueNodeInfo nodeInfo;
			std::shared_ptr<ObliqueTileStatistic> _statistic;
		private:
			std::shared_ptr<ObliqueConfig> _config;
		};

		using ObliqueTileVec = std::vector<ObliqueTile>;
	}
}


#endif
